-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update rrfs-test/CMakeLists.txt to be more compact for adding a CTest #81
Conversation
I would think we probably do "over-engineering" here. |
I am really wondering when there would be a super executable to be realized ,and I also have some different opinions on such a practice. Second, even with such one exec being realized, I expect it needs an command option to tell what run it is . While that kind of options are , as Sam mentioned, treated with the help of the introduced dic-like data structure. |
I updated this PR to now use the function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SamuelDegelia-NOAA the current version looks working cleanly with much improved readability by using the dic-like structure. Thanks.
This PR updates
RDASApp/rrfs-test/CMakeLists.txt
to be a little more user-friendly by making it easier to add CTests. Two new functions are added to allow for a “dictionary-like” data structure in CMake. To add a new CTest now, you just need to add a single line to either the fv3-jedi or mpas-jedi lists at the top of the file:All CTests in
RDASApp/build/rrfs-test
pass after making this change.Also, per discussion in #79, we will likely move to one mega executable in the near future (i.e., just a single
rdas_jedi.x
instead offv3jedi_var.x
,fv3jedi_letkf.x
,mpasjedi_enkf.x
, etc.).CMakeLists.txt
will need to be updated again at that point, but we should be able to keep the same new code structure that is added in this PR. It will eventually look something like:add_to_dictionary(rrfs_tests “rrfs_fv3jedi_hyb_2022052619” “fv3jedi” “variational”)